package com.hx;

import com.hx.srv.YourComponent2;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author minghuaChan
 * @since 2023/10/18 21:43
 */
public class Main {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");

        YourComponent2 bean = context.getBean(YourComponent2.class);

        bean.someComponentMethod();
        System.out.println("Hello world!");
    }
}